--- gdb-7.4.org/sim/common/gentmap.c	2012-06-27 16:43:51.032331245 +0000
+++ gdb-7.4/sim/common/gentmap.c	2012-06-27 16:49:12.382319996 +0000
@@ -2,6 +2,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 struct tdefs {
   char *symbol;
